<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Bpush
 *
 * @author maylor
 */
class Bpush_controller extends admincp {

    //put your code here
    public function index() {
        require self::tpl('bpush_index');
    }
    
    
    public function addTasks() {
        
    }


    public function test() {
        set_time_limit(0);
        ob_end_clean();
        ob_implicit_flush();
        header('X-Accel-Buffering: no');
        for($i=0;$i<=10;$i++) {
            echo $i.'<br>';
            sleep(1);
        }
//        $handle = popen("tail -f /var/www/zhangquan/data/log/run_20190515.log 2>&1", 'r');
//        while (!feof($handle)) {
//            $buffer = fgets($handle);
//            echo "$buffer\n<br>";
//        }
//        pclose($handle);
    }

}
